package com.san.hkhospital.controller;
import com.san.hkhospital.entity.Sysuser;
import com.san.hkhospital.service.impl.SysuserServiceImpl;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
* (sysuser)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/sysuser")
public class SysuserController {
/**
* 服务对象
*/
@Resource
private SysuserServiceImpl sysuserServiceImpl;

/**
* 通过主键查询单条数据
*
* @param id 主键
* @return 单条数据
*/
@GetMapping("selectOne")
public Sysuser selectOne(Integer id) {
return sysuserServiceImpl.selectByPrimaryKey(id);
}

}
